﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TaskManager
{
    public partial class TestForm : Form
    {
        public TestForm()
        {
            InitializeComponent();
        }

        private void TestForm_MouseDown(object sender, MouseEventArgs e)
        {
            FormTool.MouseDown_ResizeForm(this);
        }

        private void TestForm_MouseMove(object sender, MouseEventArgs e)
        {
            FormTool.MouseMove(sender, e);
            //Control ctrl = (Control)sender;
            //Rectangle client = ctrl.ClientRectangle;
            //MessageBox.Show("鼠标坐标:" + e.X + "," + e.Y + " 窗体尺寸" + client.Width + "," + client.Height);
        }

        private void transparentPanel1_Clicked(object sender, EventArgs e)
        {
            MessageBox.Show("点击控件逻辑响应！");
        }

        private void TestForm_Load(object sender, EventArgs e)
        {
            dateTimeChoser1.setDateTime(new DateTime(DateTime.Now.Ticks -1000007856780000));

            DateTimeChoser.AddTo(textBox1);
        }
    }
}
